<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试页面</title>
    <style>
        table{
            border: none;
            border-collapse: collapse;
            width: 350px;
        }
        table td{
            border: 1px solid #000;
            line-height: 30px;
            text-align: center;
        }
    </style>
</head>
<body>

    <center>
        <a th:href="${a}" th:text="${a}+'-百度地址'" th:onclick="|alert('${a}')|">123456</a>

        <input type="radio" value="1" name="sex" th:checked="${sex} eq 1">男
        <input type="radio" value="2" name="sex" th:checked="${sex} eq 2">女

        <table>
            <tr>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身高</th>
            </tr>
            <tr th:each="user:${users}">
                <td th:text="${user.name}">姓名</td>
                <td th:text="${user.sex} eq '1'? '男':'女'">性别</td>
                <td th:text="${user.age}">年龄</td>
                <td th:text="${user.height}">身高</td>
            </tr>
        </table>
    </center>


</body>
</html>
